package com.budwk.app.waterquality.models;

import com.budwk.starter.common.openapi.annotation.ApiModel;
import com.budwk.starter.common.openapi.annotation.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
@Table("waterquality.wk_control_center_info")
@Comment("质控中心")
@ApiModel(description = "质控中心")
public class ControlCenterInfo extends BaseModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @Column
    @Name
    @Comment("编号")
    @ApiModelProperty(description = "ID")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    @PrevInsert(els = {@EL("snowflake()")}, nullEffective = true)
    private String id;

    @Column("stnm")
    @Comment("断面名称")
    @ApiModelProperty(description = "断面名称")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String stnm;

    @Column("con_type")
    @Comment("质控类型")
    @ApiModelProperty(description = "质控类型")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String conType;

    @Column("file_no")
    @Comment("文件编号")
    @ApiModelProperty(description = "文件编号")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String fileNo;

    @Column("project_type")
    @Comment("项目类型")
    @ApiModelProperty(description = "项目类型")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String projectType;

    @Column("upload_time")
    @Comment("上传时间")
    @ApiModelProperty(description = "上传时间")
    @ColDefine(type = ColType.DATETIME, width = 120)
    private LocalDateTime uploadTime;

    @Column("file_id")
    @Comment("文件id")
    @ApiModelProperty(description = "文件id")
    @ColDefine(type = ColType.VARCHAR, width = 300)
    private String fileId;

    private FileInfo fileInfo;
}
